package pojo;

public class Fruit {
    private int fruitId; //ID
    private String type; //类别
    private String breed;//品种
    private String area; //产地
    private String brief;//简介
    private int weight;  //总重量
    private String price;//浮点数

    public Fruit(int fruitId,String type,String breed,String area,String brief,int weight,String price){
        super();
        this.fruitId=fruitId;
        this.type=type;
        this.breed=breed;
        this.area=area;
        this.brief=brief;
        this.weight=weight;
        this.price=price;
    }

    public int getFruitId() {
        return fruitId;
    }

    public void setFruitId(int fruitId) {
        this.fruitId = fruitId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
    public String toString(){
        return "Fruit [fruitId="+fruitId+",type="+type+",breed="+breed+",area="+area+",brief="+brief+",weight="+weight+"" +
                ",price="+price+"]";
    }
}
